{% extends "myinfo.html" %}
{%block menu_body%}
<script type="text/javascript">
	window.onload=function(){
		

	}
</script>
<div style="margin-top: 50px;margin-left: 100px;">
<form method="post" action="modifyData" enctype="multipart/form-data">
	<table>
		<th>基本资料</th>
		<tr>
			<td>头像</td>
			<td><img src="/media/{{user.src}}" style="border-radius: 50%;width:100px;height:100px;">
			</td>
			<td><input type="file" name="img" /></td>
		</tr>
		<tr>
			<td>昵&nbsp;称</td>
			<td><input type="text" name="nickname" value="{{user.nickname}}"></td>
		</tr>
		<tr>
			<td>身&nbsp;份</td>
			<td> 
				{%ifequal user.identity 1%}
				<span>教师</span>
				{%else%}
				<span>学生</span>
				{%endifequal%}
            </td>
		</tr>
		<tr>
			<td> 性&nbsp;别</td>
			<td>
				{{user.sex}}
            </td>
		</tr>
		<tr>
			<td> 年&nbsp;龄</td>
			<td><input type="text" name="age" value="{{user.age}}"></td>
		</tr>
		<tr>
			<td> 爱&nbsp;好</td>
			<td><input type="text" name="hobby" value="{{user.hobby}}"></td>
		</tr>
		<tr>
			<td> 学&nbsp;历</td>
			<td><input type="text" name="eduBackgroud" value="{{user.eduBackgroud}}"></td>
		</tr>
		<tr>
			<td> 学&nbsp;校</td>
			<td><input type="text" name="school" value="{{user.school}}"></td>
		</tr>
		<tr>
			<td> 班&nbsp;级</td>
			<td><input type="text" name="grade" value="{{user.grade}}"></td>
		</tr>
		<tr>
			<td> 奖&nbsp;项</td>
			<td><input type="text" name="reward" value="{{user.reward}}"></td>
		</tr>
		<tr>
			<td>英语水平</td>
			<td><input type="text" name="englishLevel" value="{{user.englishLevel}}"></td>
		</tr>
		<tr>
			<td>居住地址</td>
			<td><input type="text" name="address" value="{{user.address}}"></td>
		</tr>
		<tr>
			<td><input type="submit" value="保 存"  style="font-size:15px;width:65px;border-radius:3px;"></td>
		</tr>
	</table>
</form>
</div>

{% endblock %}